package com.silp.baitap1;

public class Myclass {

	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
			  lop_9 a = new lop_9();
			  int b = a.diemtbmon();
			  int c= a.diemtbhk();
			System.out.println("Lop9 " +b);
			System.out.println("Lop9 "+c);
			/*lop_12 d= new lop_12();
			int e=d.diemtbhk();
			int f =d.diemdaoduc;
			System.out.println("Lop12 " +e);
			System.out.println("Lop12 " +f);*/
		}
	}
class lop_9{

	int diemtoan=Ham.random();
	int diemly=Ham.random();
	int diemhoa=Ham.random();
	int diemvan=Ham.random();
	
	  int diemtbmon() {
		  int  diemtbmon=(diemtoan+diemly+diemhoa+diemvan)/4;
		  return diemtbmon;
		
	}

	 int diemtbhk() {
		int diemtbhk = (diemtoan+diemly+diemhoa+diemvan)*2/3;
		return diemtbhk;
	}

}
class lop_12 extends lop_9{
	int diemdaoduc=Ham.random();
}

//Class $bien=new Class();


